﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Drawing;

namespace Students
{
    public partial class StudentsForm : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void ShowData(object sender, EventArgs e)
        {
            string fName = this.firstName.Text;
            string lName = this.lastName.Text;
            string facNumber = this.facNumber.Text;
            result.Visible = true;
            result.Controls.Add(new Label() { Text = Server.HtmlEncode(fName) });            
            result.Controls.Add(new Label() { Text = Server.HtmlEncode(lName) });
            result.Controls.Add(new Label() { Text = Server.HtmlEncode(facNumber) });
            
        }

        protected void LoadSpec(object sender, EventArgs e)
        {
            if (this.university.SelectedItem.Text == "TU-Sofia")
            {
                spec.Items.Add(new ListItem() { Text = "KST" });
                spec.Items.Add(new ListItem() { Text = "FKTT" });
                spec.Items.Add(new ListItem() { Text = "MASHINOZNANIE" });
            }
        }
    }
}